package cn.licoy.wdog.core.service.hospital2.impl;
/**
 * @Author Sunne
 * @Date 18-8-14下午4:13
 * @Param emp-hospital
 * 高山仰止,景行行止.虽不能至,心向往之。
 **/

import cn.licoy.wdog.core.entity.hospital2.Earnings;
import cn.licoy.wdog.core.entity.hospital2.Withdraw;
import cn.licoy.wdog.core.mapper.hospital2.WithdrawMapper;
import cn.licoy.wdog.core.service.hospital2.WithdrawService;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 *——————————————————————————女神保佑，永无bug——————————————————————
 *
 *                    .::::.
 *                  .::::::::.
 *                 :::::::::::  FUCK YOU
 *             ..:::::::::::'
 *           '::::::::::::'
 *             .::::::::::
 *        '::::::::::::::..
 *             ..::::::::::::.
 *           ``::::::::::::::::
 *            ::::``:::::::::'        .:::.
 *           ::::'   ':::::'       .::::::::.
 *         .::::'      ::::     .:::::::'::::.
 *        .:::'       :::::  .:::::::::' ':::::.
 *       .::'        :::::.:::::::::'      ':::::.
 *      .::'         ::::::::::::::'         ``::::.
 *  ...:::           ::::::::::::'              ``::.
 * ```` ':.          ':::::::::'                  ::::..
 *                    '.:::::'                    ':'````..
 */

@Service
@Transactional
public class WithdrawServiceImpl extends ServiceImpl<WithdrawMapper, Withdraw> implements WithdrawService {
    @Override
    public List<Withdraw> selectWithdrawById(String uid) {
        List<Withdraw> lw = this.selectList(new EntityWrapper<Withdraw>()
                .setSqlSelect("amount")
                .eq("docid",uid)
                .eq("status","1")
        );
        return lw;
    }
}
